Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fast/warm-reboot] Improve retry mechanism to check if SAI_OBJECT_TYPE_ACL_ENTRY entries are in redis #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ayurkiv-nvda
Copy link
Owner

What I did

Sometimes during /usr/local/bin/neighbor_advertiser script execution, ACL entries are added to redis database with delay.
So during execution of function check_mirror_session_acls() script can't find ACL entries.
Retry mechanism was for this check added in sonic-net#3333
But script will return error and exit with failure after first try.
Need to improve this algorithm.

How I did it

add sleep 0.1 and 'continue' instead of 'exit'

How to verify it

run wr_arp test

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

…E_ACL_ENTRY entries are in redis

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
scripts/fast-reboot Outdated Show resolved Hide resolved
Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants